public class Student {
    public int idNum;
    public String name;
    public int age;

    public void print() {
        System.out.println("学生信息：学号：" + this.idNum + ",姓名：" + this.name + ",年龄：" + this.age);
    }

    public static void main(String[] args) {
        Student firsStudent = new Student();
        firsStudent.idNum = 1000;
        firsStudent.name = "张三";
        firsStudent.age = 18;

        Student secondStudent = new Student();
        secondStudent.idNum = 1001;
        secondStudent.name = "李四";
        secondStudent.age = 19;

        Student thirdStudent = new Student();
        thirdStudent.idNum = 1002;
        thirdStudent.name = "王五";
        thirdStudent.age = 20;

        firsStudent.print();
        secondStudent.print();
        thirdStudent.print();
    }
}


